//
//  SISSContractBaseCell.m
//  SISSAPP
//
//  Created by 优房网 on 2017/8/16.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import "SISSContractBaseCell.h"

@implementation SISSContractBaseCell


- (void)textFieldDidEndEditing:(UITextField *)textField {
    
    UIResponder *responder = self;
    UIViewController *viewController;
    while ((responder = [responder nextResponder])){
        if ([responder isKindOfClass: [UIViewController class]]) {
            viewController = (UIViewController *)responder;
            break;
        }
    }
    [viewController.view endEditing:YES];
    viewController.view.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
    
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    UIResponder *responder = self;
    UIViewController *viewController;
    while ((responder = [responder nextResponder])){
        if ([responder isKindOfClass: [UIViewController class]]) {
            viewController = (UIViewController *)responder;
            break;
        }
    }
    [viewController.view endEditing:YES];
    
    if (self.contractModel.isClickJump) {
        [super touchesBegan:touches withEvent:event];
    }
}

@end
